<?php

class IndexController extends Engine_Controller_Action {
	
	public function indexAction() {

		echo $this->locale . '<br/>';
		$loc =  $this->locale->getBrowser();
		foreach ($loc as $key => $value) {
			echo "$key = $value <br/>";
			echo "$key <br/>";
		}
		
		$date = new Zend_Date('US');
		echo $date . '<br/>';
		echo date('Y.m.d h:i:s A') . '<br/>';
		
		echo $this->locale->getRegion() . '<br/>';
		
		try {
			$currency = new Zend_Currency($this->locale->getRegion() );
		} catch (Exception $e) {
			$currency = new Zend_Currency('US');
		}
		echo $currency . '<br/>';
		echo $_SERVER['HTTP_ACCEPT_LANGUAGE'].'<br/>';

		// INSTALL DATABASE
		/*
		echo '<br/>';
		$schema = new Engine_Db_Schema($this->db);
		if ($schema->createTables())
			echo "Database Installed Successfully.<br/>";
		else {
			$e = $schema->getException();
			echo $e->getMessage();
		}
		*/

		echo '<br/>';
		$plugin = new WJ_Plugin_Test();
		$helper = new WJ_Helper_Test();
	//	$widget = new WJ_Widget_Vmenu();
		
	//	$block = new WJ_View_Helper_Blocks();
		
		
		echo "<br/>".get_include_path()."<br/>";
		
		echo serialize(array()) . '<br/>';
		
		echo '<br/>';
		$options = array('widget_content' => '');
		$str = serialize($options);
		echo "$str";
	}
	
	
	public function pagesAction() {
		
	}

}
